﻿
using System;
using Dos.ORM;

namespace Dos.Model
{
    /// <summary>
    /// 实体类temple_Contents。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Table("temple_Contents")]
    [Serializable]
    public partial class temple_Contents : Entity
    {
        #region Model
        private string _Title;
        private string _Depict;
        private string _Info;
        private string _Photo;
        private string _Attachment;
        private int _CategoryID;
        private int _Flag;
        private int _SortID;
        private string _Language;
        private string _ShowList;
        private DateTime _AddTime;
        private int _AddUser;
        private bool _IsDel;
        private int _ID;

        /// <summary>
        /// 
        /// </summary>
        [Field("Title")]
        public string Title
        {
            get { return _Title; }
            set
            {
                this.OnPropertyValueChange("Title");
                this._Title = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("Depict")]
        public string Depict
        {
            get { return _Depict; }
            set
            {
                this.OnPropertyValueChange("Depict");
                this._Depict = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("Info")]
        public string Info
        {
            get { return _Info; }
            set
            {
                this.OnPropertyValueChange("Info");
                this._Info = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("Photo")]
        public string Photo
        {
            get { return _Photo; }
            set
            {
                this.OnPropertyValueChange("Photo");
                this._Photo = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("Attachment")]
        public string Attachment
        {
            get { return _Attachment; }
            set
            {
                this.OnPropertyValueChange("Attachment");
                this._Attachment = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("CategoryID")]
        public int CategoryID
        {
            get { return _CategoryID; }
            set
            {
                this.OnPropertyValueChange("CategoryID");
                this._CategoryID = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("Flag")]
        public int Flag
        {
            get { return _Flag; }
            set
            {
                this.OnPropertyValueChange("Flag");
                this._Flag = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("SortID")]
        public int SortID
        {
            get { return _SortID; }
            set
            {
                this.OnPropertyValueChange("SortID");
                this._SortID = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("Language")]
        public string Language
        {
            get { return _Language; }
            set
            {
                this.OnPropertyValueChange("Language");
                this._Language = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("ShowList")]
        public string ShowList
        {
            get { return _ShowList; }
            set
            {
                this.OnPropertyValueChange("ShowList");
                this._ShowList = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("AddTime")]
        public DateTime AddTime
        {
            get { return _AddTime; }
            set
            {
                this.OnPropertyValueChange("AddTime");
                this._AddTime = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("AddUser")]
        public int AddUser
        {
            get { return _AddUser; }
            set
            {
                this.OnPropertyValueChange("AddUser");
                this._AddUser = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("IsDel")]
        public bool IsDel
        {
            get { return _IsDel; }
            set
            {
                this.OnPropertyValueChange("IsDel");
                this._IsDel = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("ID")]
        public int ID
        {
            get { return _ID; }
            set
            {
                this.OnPropertyValueChange("ID");
                this._ID = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
                _.ID,
            };
        }
        /// <summary>
        /// 获取实体中的标识列
        /// </summary>
        public override Field GetIdentityField()
        {
            return _.ID;
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
                _.Title,
                _.Depict,
                _.Info,
                _.Photo,
                _.Attachment,
                _.CategoryID,
                _.Flag,
                _.SortID,
                _.Language,
                _.ShowList,
                _.AddTime,
                _.AddUser,
                _.IsDel,
                _.ID,
            };
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
                this._Title,
                this._Depict,
                this._Info,
                this._Photo,
                this._Attachment,
                this._CategoryID,
                this._Flag,
                this._SortID,
                this._Language,
                this._ShowList,
                this._AddTime,
                this._AddUser,
                this._IsDel,
                this._ID,
            };
        }
        /// <summary>
        /// 是否是v1.10.5.6及以上版本实体。
        /// </summary>
        /// <returns></returns>
        public override bool V1_10_5_6_Plus()
        {
            return true;
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "temple_Contents");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Title = new Field("Title", "temple_Contents", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Depict = new Field("Depict", "temple_Contents", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Info = new Field("Info", "temple_Contents", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Photo = new Field("Photo", "temple_Contents", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Attachment = new Field("Attachment", "temple_Contents", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field CategoryID = new Field("CategoryID", "temple_Contents", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Flag = new Field("Flag", "temple_Contents", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field SortID = new Field("SortID", "temple_Contents", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Language = new Field("Language", "temple_Contents", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field ShowList = new Field("ShowList", "temple_Contents", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field AddTime = new Field("AddTime", "temple_Contents", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field AddUser = new Field("AddUser", "temple_Contents", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field IsDel = new Field("IsDel", "temple_Contents", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field ID = new Field("ID", "temple_Contents", "");
        }
        #endregion
    }
}